﻿using UnityEngine;
using UnityEngine.EventSystems;

namespace UnityEngine.UI
{
    /// <summary>
    /// 用于非UIButton组件点击时反馈声音
    /// </summary>
    public class UIClickSound : MonoBehaviour, IPointerClickHandler
    {
        public void OnPointerClick(PointerEventData eventData)
        {
            SoundManager.Instance.PlayOneShot(Const.Sound.BtnClick);
        }
    }
}

